/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pe.edu.pucp.views;

import java.util.Date;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JFrame;
import javax.swing.JPanel;






public class MyThreadC extends Thread{
    
    public InternalFrameCliente theWindow;
    public boolean life=false;
 
    public MyThreadC(InternalFrameCliente theWindow){
    this.theWindow=theWindow;
    }
    
    public void kill(){
        life=false;
    }
    public void run(){
        life=true;
//        PanelClienteAgregar a = pe.edu.pucp.main.Main.principal.cli.getPanelClienteAgregar();
//        PanelClienteEditar e = pe.edu.pucp.main.Main.principal.cli.getPanelClienteEditar();
//        PanelClienteEliminar el = pe.edu.pucp.main.Main.principal.cli.getPanelClienteEliminar();
       
        while(true){
            try {
//                a.Actualizar();
//                e.Actualizar();
//                el.Actualizar();
                               
                this.sleep(100);
            } catch (InterruptedException ex) {
                Logger.getLogger(Mythread.class.getName()).log(Level.SEVERE, null, ex);
                this.kill();
            }
           
        }
    }
}

